﻿<%@ Page Title="" Language="C#" MasterPageFile="~/admincp/MasterPageEmpty.master" AutoEventWireup="true" CodeFile="khoilop.aspx.cs" Inherits="admincp_khoilop" %>

<%@ Register src="wucSideBar.ascx" tagname="wucSideBar" tagprefix="uc1" %>
<%@ Register src="wucNavTop.ascx" tagname="wucNavTop" tagprefix="uc2" %>

<asp:Content ID="Content1" ContentPlaceHolderID="cphHead" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cphTopBar" Runat="Server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="cphSideBar" Runat="Server">
    <uc1:wucSideBar ID="wucSideBar1" runat="server" />
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="cphNavTop" Runat="Server">
    <uc2:wucNavTop ID="wucNavTop1" runat="server" />
</asp:Content>
<asp:Content ID="Content5" ContentPlaceHolderID="cphContent" Runat="Server">
    <div class="flat_area grid_16">
        <h2>
            Danh mục khối lớp</h2>
    </div>
    <div class="flat_area grid_16">
        <div class="block">
            <button id="btnThemMoiKhoiLop" onserverclick="ThemMoiKhoiLop" runat="server" class="button_colour round_all">
                <img height="24" width="24" alt="Thêm khối lớp" src="images/icon_add.png"><span>Thêm khối lớp</span></button>
        </div>
    </div>
    <div class="box grid_16 round_all">
        <asp:ListView ID="lvKhoiLop" runat="server">
                <LayoutTemplate>
                    <table class="display table">
                        <thead>
                            <tr>
                                <th style="width: 10%">
                                    Mã khối lớp
                                </th>
                                <th style="width: 60%">
                                    Tên khối lớp
                                </th>
                                <th style="width: 15%" align="center">
                                    Trạng thái
                                </th>
                                <th style="width: 10%" align="center">
                                    Sửa / Xóa
                                </th>
                            </tr>
                        </thead>
                        <tbody>
                            <asp:PlaceHolder ID="itemPlaceHolder" runat="server"></asp:PlaceHolder>
                        </tbody>
                    </table>
                </LayoutTemplate>
                <ItemTemplate>
                    <tr>
                        <td>
                            <b>
                                <%# Eval("MaKhoiLop")%></b>
                        </td>
                        <td>
                            <b>
                                <%# Eval("TenKhoiLop")%></b>
                        </td>
                        <td align="center">
                            <asp:Image ID="imgStatus" ImageUrl='<%# HienThiTrangThaiBangHinhAnh(Eval("TrangThai")) %>' runat="server" Width="10"
                            Height="10" />
                        </td>
                        <td align="center">
                            <asp:ImageButton ID="btnSuaKhoiLop" runat="server" CssClass="help" ToolTip="Sửa khối lớp"
                                ImageUrl="images/icon_edit.png" CommandName="EDIT" CommandArgument='<%# Eval("MaKhoiLop") %>' />
                            <img alt="" src="images/icon_blank.png" />
                            <asp:ImageButton ID="btnXoaKhoiLop" runat="server" CssClass="help" ToolTip="Xóa khối lớp"
                                ImageUrl="images/icon_delete.png" CommandName="DELETE" CommandArgument='<%# Eval("MaKhoiLop") %>'
                                OnClientClick="return confirm('Bạn chắc chắn muốn xóa khối lớp này?')" />
                        </td>
                    </tr>
                </ItemTemplate>
            </asp:ListView>
    </div>
</asp:Content>
<asp:Content ID="Content6" ContentPlaceHolderID="cphTemplateOption" Runat="Server">
</asp:Content>

